<?php
cekAkses($_SESSION[akses],"A-3");
?>
<link type="text/css" rel="stylesheet" href="css/jquery.wysiwyg.css" />
<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	$().ajaxStart(function() {
		$('#loading').show();
		$('#result').hide();
	}).ajaxStop(function() {
		$('#loading').hide();
		$('#result').fadeIn('slow');
	});

	$('#add').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#result').html(data);
			}
		})
		return false;
	});
  $('#result').click(function(){
  $(this).hide();
  });
})
$(function()
  {
      $('#keterangan').wysiwyg();
  });
</script>
<div id="loading" style="display:none;"><img src="images/loading.gif" alt="loading..." /></div>
<div id="result" style="display:none;"></div>
<h1>Tambah Klasifikasi Akun </h1>
<form action="proses/klasifikasiakun.php?act=add" method="POST" name="add" id="add" >
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" class="datatable">
    <tr>
      <td width="18%" align="right">Kode* : </td>
      <td width="82%"><label>
        <input name="kode" type="text" id="kode" size="15" maxlength="10"/>
      (number only) </label></td>
    </tr>
    <tr>
      <td align="right">Klasifikasi*  : </td>
      <td><label>
        <input name="klasifikasi" type="text" id="klasifikasi" size="30" maxlength="100"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right">Neraca : </td>
      <td><label>
        <select name="neraca" id="neraca" style="width:180px;">
          <option value="0">Tidak diset</option>
          <option value="1">Aktiva</option>
          <option value="2">Pasiva</option>
        </select>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right">Rugi/Laba : </td>
      <td><label>
        <select name="rugilaba" id="rugilaba" style="width:180px;">
          <option value="0" selected="selected">Tidak diset</option>
          <option value="1">Set Penghasilan Usaha</option>
          <option value="2">Set Beban Usaha</option>
        </select>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right">Tipe : </td>
      <td><label>
        <select name="tipe" id="tipe" style="width:180px;">
          <option value="0" selected="selected">Tidak diset</option>
          <option value="2">Kas &amp; Bank</option>
          <option value="3">Persediaan</option>
          <option value="4">HPP</option>
          <option value="5">Penjualan</option>
          <option value="6">Piutang</option>
          <option value="7">Hutang</option>
          <option value="8">Penawaran</option>
          <option value="9">Pajak</option>
          <option value="10">Biaya Lain</option>
        </select>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right">Keterangan : </td>
      <td><label>
      <textarea name="keterangan" cols="85" rows="5" id="keterangan"></textarea>
      </label></td>
    </tr>
    <tr>
      <td align="left"><label><em>*Harus diisi<input name="open" type="hidden" id="open" value="<?php echo $_GET['open'];?>" /></em></label></td>
      <td><label>
        <input name="Save" type="submit" id="Save" value="Simpan" />
        </label>
          <label>
          <input type="button" name="Button" value="Batal" onclick="javascript:<?php if($_GET['open']=='window') { ?>window.close(2000);<?php }else{ ?>history.go(-1);<?php } ?>" />
        </label></td>
    </tr>
  </table>
  <input type="hidden" name="MM_insert" value="add">
  <input type="hidden" name="MM_update" value="add">
</form>
